package io;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class WriteStringdome {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("dome.txt");
        String lin = "我不是的规划";
        byte[] date = lin.getBytes(StandardCharsets.UTF_8);
        fos.write(date);
        System.out.println("写入完毕!");
        fos.close();
    }
}
